package cn.study.luckyinfrastructure.gateway.iml.mapper;

import cn.study.luckyclient.dto.query.AwardListByParamQuery;
import cn.study.luckyinfrastructure.gateway.iml.dataObject.AwardDB;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AwardMapper extends BaseMapper<AwardDB> {
    IPage<AwardDB> page(@Param("awardDBPage") Page<AwardDB> awardDBPage, @Param("query") AwardListByParamQuery awardListByParamQuery);
    @Update("update bld_award set number=number-#{number} where id=#{id}")
    int deucation(@Param("id") Long id,@Param("number") int number);
}
